package com.example.demospringmybatisplus.controller;

import com.example.demospringmybatisplus.entity.Invoice;
import com.example.demospringmybatisplus.service.InvoiceService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 发票服务controller
 *
 * @author huahua
 * @DATE 2025/8/3
 **/
@RestController
public class InvoiceController {
    @Autowired
    private InvoiceService invoiceService;

    @RequestMapping("updateInvoice")
    public void updateInvoice(@RequestBody Invoice invoice,@RequestParam String invoiceStatus)
    {
        invoiceService.updateInvoice(invoice,invoiceStatus);
    }
}
